/*
 * Copyright (c) .NET Foundation and Contributors
 *
 * This software may be modified and distributed under the terms
 * of the MIT license. See the LICENSE file for details.
 *
 * https://github.com/piranhacms/piranha.core
 *
 */

namespace Piranha.Data;

[Serializable]
public abstract class ContentFieldBase
{
    /// <summary>
    /// Gets/sets the unique id.
    /// </summary>
    public Guid Id { get; set; }

    /// <summary>
    /// Gets/sets the region id.
    /// </summary>
    public string RegionId { get; set; }

    /// <summary>
    /// Gets/sets the field id.
    /// </summary>
    public string FieldId { get; set; }

    /// <summary>
    /// Gets/sets the sort order.
    /// </summary>
    public int SortOrder { get; set; }

    /// <summary>
    /// Gets/sets the sort order of the value.
    /// </summary>
    public string CLRType { get; set; }

    /// <summary>
    /// Gets/sets the JSON serialized value.
    /// </summary>
    public string Value { get; set; }
}
